/*
 * Summer html image map creator
 * http://github.com/summerstyle/summer
 *
 * Copyright 2013 Vera Lobacheva (summerstyle.ru)
 * Released under the GPL3 (GPL3.txt)
 *
 * Thu May 15 2013 15:15:27 GMT+0400
 */

html, body, div, span, applet, object, h1, h2, h3, h4, h5, h6, p, a, em, img, strong, ol, ul, li, dl, dd, dt, form, label, input, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video  {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-style: inherit;
    font-size: 100%;
    font-family: inherit;
    vertical-align: baseline;
    background: transparent;
}
:focus {
    outline: 0;
}
ul, ol {
    list-style: none;
}
html {
    height: 100%;
}
body {
    padding: 0;
    margin: 0;
    font-family: Arial, Tahoma, sans-serif;
    font-size: 14px;
    color: #000;
    height: 100%;
    min-height: 100%;
    background: #FFF url();
    line-height: 1;
}
img {
    border: 0;
}
a:link, a:visited {
    outline: none;
    text-decoration: none;
    color: #000;
}
.clear {
    clear: both;
}
.clearfix:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
}
#noscript {
    text-align: center;
    display: block;
    font-size: 20px;
    padding: 5px 0;
    background: #F00;
}
#header {
    background: #000;
    padding: 5px 0;
    position: fixed;
    z-index: 1001;
    width: 100%;
    box-shadow: rgba(0,0,0,0.2) 0 0 2px 2px;
}
#logo {
    margin-right: 10px;
    margin-left: 10px;
    margin-top: -4px;
    margin-bottom: -4px;
    display: inline-block;
    vertical-align: top;
}
#logo a:link, #logo a:visited {
    color: #32c832;
}
#logo a:hover {
    color: #FFF;
}
#logo img {
    display: block;
}
#nav, #nav ul {
    display: inline;
    vertical-align: middle;
}
#nav li {
    margin-right: 5px;
    display: inline;
}
#nav a:link, #nav a:visited {
    border: 1px solid #FFF;
    border-radius: 3px;
    font-size: 10px;
    padding: 5px 10px;
    display: inline-block;
    color: #FFF;
}
#nav a:hover, #nav a:active {
    border: 1px solid #32c832;
    color: #32c832;
}
#nav a:active, #nav .selected a {
    background: #FFF;
    color: #000;
    box-shadow: 0 0 1px #222 inset;
    border: 1px solid #FFF;
}
#coords {
    position: absolute;
    top: 22px;
    right: 15px;
    color: #FFF;
    font-size: 11px;
}
#debug {
    color: #EEE;
    position: absolute;
    top: 10px;
    right: 100px;
    z-index: 1001;
    font-size: 11px;
}
#wrapper {
    position: relative;
    display: none;
}
#image_wrapper {
    padding: 45px 0 10px;
}
#image {
    position: relative;
    overflow: hidden;
    display: block;
    margin: 0 auto;
    border-radius: 3px;
    box-shadow: rgba(0,0,0,0.2) 0 0 2px 2px;
}
.draw#image {
    cursor: crosshair;
}
#image map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}
#img {
    position: relative;
    z-index: 1;
}
#code {
    background: rgba(0,0,0,0.9);
    color: #FFF;
    font-family: monospace;
    font-size: 11px;
    line-height: 1.3;
    width: 600px;
    position: fixed;
    left: 3%;
    width: 94%;
    bottom: 10px;
    z-index: 1000;
    box-shadow: rgba(0,0,0,0.2) 0 0 2px 2px;
    display: none;
    border-radius: 3px;
}
#code_content {
    padding: 10px;
}
.close_button {
    width: 10px;
    height: 10px;
    display: block;
    background: #FFF url() 50% 50% no-repeat;
    position: absolute;
    top: 10px;
    right: 10px;
    box-shadow: 0 0 1px #222 inset;
    border-radius: 1px;
    cursor: pointer;
}
#about {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    font-family: 'News Cycle';
    font-size: 24px;
    background: transparent;
    padding: 2px 10px 5px;
    -o-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #000;
}
#get_image_wrapper {
    padding: 35px 0;
}
#get_image {
    width: 200px;
    margin: 0 auto;
    font-size: 16px;
    text-align: center;
    background: #FFF;
    padding: 20px 30px;
    border-radius: 5px;
    box-shadow: rgba(0,0,0,0.2) 0 0 2px 2px;
    position: relative;
}
#logo_get_image {
    margin-bottom: 20px;
}
#loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 20px;
    background: rgba(255,255,255,0.95) url() 50% 50% no-repeat;
    z-index: 3;
    border-radius: 5px;
    line-height: 3;
}
#get_image b {
    display: block;
    font-size: 25px;
    margin: 10px 0;
}
#get_image label {
    display: block;
    margin-bottom: 5px;
}
#button {
    margin-top: 20px;
    font-size: 21px;
}
#dropzone {
    border: 2px dashed #999;
    width: 200px;
    height: 200px;
    background: #FAFAFA url() 50% 50% no-repeat;
    overflow: hidden;
    text-align: center;
    line-height: 200px;
    position: relative;
}
.error#dropzone {
    border: 2px dashed #F00;
}
.clear_button {
    display: block;
    height: 16px;
    width: 16px;
    position: absolute;
    top: 6px;
    right: 6px;
    line-height: 1 !important;
    overflow: hidden;
    cursor: pointer;
    text-indent: -9999px;
    background: url();
    z-index: 2;
}
#dropzone img {
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
}
#url_wrapper {
    position: relative;
    display: block;
}
#url {
    border: 2px solid #999;
    border-radius: 3px;
    background: #FFF;
    padding: 2px 25px 2px 5px;
    width: 100%;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2) inset;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.error#url {
    border: 2px solid #F00;
}
#edit_details {
    position: absolute;
    top: 100px;
    left: 100px;
    background: rgba(0,0,0,0.9);
    border-radius: 5px;
    padding: 10px;
    box-shadow: rgba(0,0,0,0.2) 0 0 2px 1px;
    display: none;
    z-index: 1000;
    color: #FFF;
    font-size: 0px;
}
#edit_details h5 {
    margin-bottom: 10px;
    font-size: 14px;
    cursor: move;
}
.changed#edit_details h5, p.changed label {
    color: #32c832;
}
#edit_details p {
    margin-bottom: 10px;
}
#edit_details label {
    font-size: 11px;
    display: block;
    margin-bottom: 2px;
}
#edit_details input[type=text] {
    background: #FFF;
    font-size: 12px;
    font-family: sans-serif;
    padding: 2px 5px;
    width: 120px;
    border-radius: 5px;
    box-shadow: rgba(0,0,0,0.5) 0 1px 2px inset;
}
.changed#edit_details button {
    box-shadow: rgba(50,200,50,1) 0 0 1px 2px;
}
#help {
    display: none;
    width: 400px;
    border-radius: 3px;
    background: #FFF;
    position: absolute;
    top: 35px;
    left: 50%;
    margin-left: -200px;
    z-index: 1003;
    box-shadow: rgba(0,0,0,0.2) 0 0 2px 2px;
}
#help .txt {
    padding: 20px 20px 5px;
    line-height: 1.4;
}
.txt p {
    margin-bottom: 3px;
}
#help section {
    margin-bottom: 20px;
}
#help .close_button {
    background: #000 url() 50% 50% no-repeat;
    box-shadow: 0 0 1px #EEE inset;
    border-radius: 2px;
}
#help h2 {
    margin-bottom: 5px;
}
#help footer {
    color: #999;
    font-size: 10px;
    padding: 0 20px 20px;
    line-height: 1.3;
}
#help footer a {
    color: #777;
    text-decoration: underline;
}
.key {
    background: #F5F5F5;
    color: #555;
    text-shadow: 0 0 1px #EEE;
    padding: 1px 5px;
    border: 1px solid #CCC;
    border-radius: 3px;
    display: inline-block;
    min-width: 16px;
    text-align: center;
    font-size: 11px;
    box-shadow: 1px 1px 0 rgba(255,255,255,1) inset, -1px -1px 0 rgba(0,0,0,0.08) inset;
    overflow: hidden;
    cursor: default;
    vertical-align: middle;
}
.key:active {
    padding: 2px 5px 0;
    box-shadow: 1px 1px 0 rgba(0,0,0,0.08) inset, -1px -1px 0 rgba(255,255,255,1) inset;
}
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1002;
    background: #000;
    opacity: 0.5;
    display: none;
}
#from_html_wrapper {
    display: none;
    width: 500px;
    border-radius: 5px;
    background: rgba(0,0,0,0.9);
    position: absolute;
    top: 35px;
    left: 50%;
    margin-left: -250px;
    z-index: 1002;
    color: #FFF;
}
#from_html_wrapper .close_button {
    background: #000 url() 50% 50% no-repeat;
    box-shadow: 0 0 1px #EEE inset;
    border-radius: 2px;
}
#from_html_form {
    padding: 20px;
}
#from_html_form h5 {
    margin-bottom: 15px;
}
#from_html_form label {
    display: block;
    font-size: 12px;
}
#from_html_form textarea {
    border: 0px;
    border-radius: 3px;
    background: #FFF;
    padding: 2px 5px;
    margin-bottom: 5px;
    width: 100%;
    height: 100px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.2) inset;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;    
    font-family: monospace;
    font-size: 11px;
    line-height: 1.3;
}

/* CSS for SVG-elements */

#svg {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: inline-block;
}
#svg rect {
    stroke-width: 2px;
    stroke: #F00;
    fill: rgba(255,255,255,0.3);
}
#svg rect.with_href {
    fill: rgba(0,0,0,0.3);
}
.edit > #svg rect:hover {
    fill: rgba(50,200,50,0.3);
}
#svg rect.active {
    fill: rgba(0,0,0,0.5);
}
#svg circle {
    stroke-width: 2px;
    stroke: #F00;
    fill: rgba(255,255,255,0.3);
}
#svg circle.with_href {
    fill: rgba(0,0,0,0.3);
}
.edit > #svg circle:hover {
    fill: rgba(50,200,50,0.3);
}
#svg polyline, #svg polygon {
    stroke-width: 2px;
    stroke: #F00;
    fill: rgba(255,255,255,0.3);
}
#svg polygon.with_href {
    fill: rgba(0,0,0,0.3);
}
.edit > #svg polygon:hover {
    fill: rgba(50,200,50,0.3);
}
#svg .selected {
    fill: rgba(50,200,50,0.5) !important;
}
#svg rect.helper {
/*    fill: #f00;*/
    stroke: #f00;
    stroke-width: .01px;
}
#svg rect.helper:hover {
    fill: #F00; 
}
.edit > #svg rect, .edit > #svg circle, .edit > #svg polygon {
    cursor: move;
}
.edit > #svg .pointer {
    cursor: pointer;
}
.edit > #svg .e-resize {
    cursor: e-resize;
}
.edit > #svg .ne-resize {
    cursor: ne-resize;
}
.edit > #svg .nw-resize {
    cursor: nw-resize;
}
.edit > #svg .n-resize {
    cursor: n-resize;
}
.edit > #svg .se-resize {
    cursor: se-resize;
}
.edit > #svg .sw-resize {
    cursor: sw-resize;
}
.edit > #svg .s-resize {
    cursor: s-resize;
}
.edit > #svg .w-resize {
    cursor: w-resize;
}
map[name=map]{

}
map[name=map] area{
    border: solid 4px #f00 !important;
}